<header class="navbar" role="banner" data-lift="SessionSnippet.navbarTop?eager_eval=true">
  <div class="container">
    <div class="navbar-header">
      <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".top-nav-collapse">
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a href="/index"><img src="/assets/img/hello2.png" class="navbar-img" class="navbar-left"/></a>
      <!--<a class="navbar-brand" href="/index">&nbsp;&nbsp;Scala!</a>-->
    </div>

    <nav class="collapse navbar-collapse top-nav-collapse" role="navigation">
      <ul class="nav navbar-nav">
        <li><a href="/topic">文章</a></li>
        <!--<li><a href="">酷站</a></li>-->
        <li><a href="/u">会员</a></li>
      </ul>
      <!--<div class="navbar-form navbar-left" role="search" id="main-search" data-lift="SearchSnippet.mainSearch">-->
      <!--<form data-lift="form.ajax">-->
      <!--<div class="form-group" data-lift="form.ajax">-->
      <!--<div class="input-group" style="width:280px;">-->
      <!--<input type="text" class="form-control" placeholder="搜索……">-->
      <!--<span class="input-group-btn">-->
      <!--<button type="submit" class="btn btn-default">搜索</button>-->
      <!--</span>-->
      <!--</div>-->
      <!--<input type="hidden" name="submit"/>-->
      <!--</div>-->
      <!--</form>-->
      <!--</div>-->

      <div id="main-menu" data-lift="SessionSnippet.mainMenu">
        <div class="navbar-btn btn-group navbar-right" name="logged">
          <button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown">
            <span name="account">#account#</span>
            <b class="caret"></b>
          </button>
          <ul class="dropdown-menu">
            <li name="account-index"><a href="/u/${account}">账户中心</a></li>
            <li class="divider"></li>
            <li name="sign_out"><a href="/c/sign_out">登出</a></li>
          </ul>
          </li>
        </div>

        <div name="not-logged-in" class="navbar-right">
          <a class="btn btn-default navbar-btn" href="/c/sign_up">注册</a>
          <a class="btn btn-default navbar-btn" href="/c/sign_in">登录</a>
          </ul>
        </div>

        <span class="navbar-text navbar-right" id="ajax-loader" style="display:none;">载入……&nbsp;&nbsp;</span>
      </div>
    </nav>

  </div>
</header>
